package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.FocusUser;

import java.util.List;

/**
 * @Description：test
 * @Create by： 张会豪
 * @Date：2021/11/3 12:49
 */
public interface FocusUserApi {

    //视频关注
    void save(FocusUser focusUser);

    //视频关注--取消
    void delete(Long userId, Long followUserId);

    //查看当前用户是否已关注该视频用户
    Boolean hasFocus(Long userId, Long followUserId);

    Long countFans(Long userId);

    List<FocusUser> findByUserId(Long userId, Integer page, Integer pagesize);

    void deleteById(Long uid,Long followUserId);
}
